<?php
/**
 * 获取记录cpl 用户填写信息
 */

use Biz\service\activity\CplRecord;

/**
 * @deprecated
 */
class GetCplInfoAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $module_id = $this->getRequest()->getPost('module_id');
        //校验参数
        if( empty($module_id)){
            throw new Exception('参数错误');
        }
        $record_info =CplRecord::getRecordByModuleId($module_id , $this->uid);
        $this->setSuccess($record_info);
    }

}